package locacao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;

import cliente.Cliente;
import funcionario.Funcionario;

public interface ILocacao {
	public void adicionar(Locacao locacao) throws ClassNotFoundException, SQLException;
	public void editar(Locacao locacao)throws ClassNotFoundException, SQLException;
	public void remover(int idLocacao) throws ClassNotFoundException, SQLException;
	public void entregar(Locacao loc) throws ClassNotFoundException, SQLException;
	public int existe(int idLocacao) throws ClassNotFoundException, SQLException;
	public  Locacao pesquisar(int idLocacao) throws ClassNotFoundException, SQLException;
	public  ArrayList<Locacao> listar(int status) throws ClassNotFoundException, SQLException;
	public  ArrayList<Locacao> listarPorCliente(String nomeCliente, int status) throws ClassNotFoundException, SQLException;
	public  ArrayList<Locacao> listarPorFuncionario(String nomeFuncionario, int status) throws ClassNotFoundException, SQLException;
	public int getNovoIdLocacao() throws ClassNotFoundException, SQLException;
	public int locacaoTemFuncionario(int idFuncionario) throws ClassNotFoundException, SQLException;
	public int locacaoTemCliente(int idCliente) throws ClassNotFoundException, SQLException;
	public int locacaoJaEntregue(int idLocacao) throws ClassNotFoundException, SQLException;
	
}
